package com.cntaiping.royal.bass.core.service;

import com.cntaiping.royal.bass.core.dao.JClassRecordMapper;
import com.cntaiping.royal.bass.core.entity.JClassRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author jiangwei
 * @since 20/2/11
 */
@Service
public class ClassRecordService {
    @Autowired
    private JClassRecordMapper classRecordMapper;


    public int addClassRecord(JClassRecord classRecord) {
        return classRecordMapper.insert(classRecord);
    }

    public List<JClassRecord> queryList(Map map) {
        return classRecordMapper.selectAll(map);
    }


    public Map queryParticpateCount(String systemId) {
        return classRecordMapper.queryParticpateCount(systemId);
    }

    public List<JClassRecord> selectRecords(Map map) {
        return classRecordMapper.selectRecords(map);
    }
}
